<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for循环</title>
    <script>
        for(var i=0; i<5; i++){
            alert(i);
        }
    </script>
</head>
<body>

</body>
</html>